package com.itheima.api;

import com.itheima.pojo.UmsRoleMenuRelation;

import java.util.List;

import java.util.List;

public interface UmsRoleMenuRelationApi {
    /**
     * 给角色分配菜单
     * @param menuIds
     * @param roleId
     */
    void allocMenu(Integer[] menuIds, Integer roleId);

    List<Long> getRoleRelatedMenuId(Integer roleId);

    void deleteByMenuId(List<Long> idList);
    /**
     * 根据角色id获取对应菜单id
     * @param roleIds
     * @return
     */
    List<UmsRoleMenuRelation> findMenuIdsByRoleIds(List<Long> roleIds);

    void deleteByRoleId(Integer[] ids);
}
